package com.cjx.stars.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cjx.stars.pojo.table.BlogLike;

/**
* @author cjx
* @description 针对表【blog_like】的数据库操作Mapper
* @createDate 2024-04-04 16:28:36
* @Entity generator.domain.BlogLike
*/
public interface BlogLikeMapper extends BaseMapper<BlogLike> {

    /**
     * 判断是否存在已删除的点赞关系
     * @param blogId 博文id
     * @param userId 用户id
     * @return 点赞数据
     */
    BlogLike getIsLike(Long blogId, Long userId);

    /**
     * 将已删除的点赞关系恢复
     * @param blogId 博文id
     * @param userId 用户id
     * @return 是否修改成功
     */
    Boolean updateDeleteLike(Long blogId, Long userId);

}




